import Layout from '@/layouts';
import DashboardIcon from '@/assets/assets-slide-dashboard.svg';

export default [
  {
    path: '/vadmin',
    component: Layout,
    redirect: '/vadmin/account',
    name: 'Vadmin',
    meta: { title: '权限管理', icon: DashboardIcon },
    children: [
      {
        path: 'account',
        name: 'Account',
        component: () => import('../../pages/vadmin/account/index.vue'),
        meta: { title: '用户管理' },
      },
      {
        path: 'role',
        name: 'Role',
        component: () => import('../../pages/vadmin/role/index.vue'),
        meta: { title: '角色管理' },
      },
      {
        path: 'menu',
        name: 'Menu',
        component: () => import('../../pages/vadmin/menu/index.vue'),
        meta: { title: '菜单管理' },
      }
    ],
  },
];
